package com.lanxiao.cloud.modules.file.domain.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lanxiao.cloud.common.core.enums.StateEnum;
import com.lanxiao.cloud.common.mybatis.basic.BaseEntity;
import com.lanxiao.cloud.modules.file.infrastructure.enums.UploadType;

/**
 * @author ：qiaoliang
 * @date ：2021-10-25
 */
@TableName(value = "sys_file_configure", autoResultMap = true)
public class FileConfigure extends BaseEntity<Long, Long> {
  /** 名称 **/
  private UploadType type;
  /** 上传地址 **/
  private String endpoint;
  /** 秘钥key **/
  private String accessKey;
  /** 密钥 **/
  private String secretKey;
  /** 空间名 **/
  private String bucket;
  /** 状态 **/
  private StateEnum state;

  public FileConfigure() {
  }

  public FileConfigure(StateEnum state) {
    this.state = state;
  }

  public UploadType getType() {
    return type;
  }

  public void setType(UploadType type) {
    this.type = type;
  }

  public String getEndpoint() {
    return endpoint;
  }

  public void setEndpoint(String endpoint) {
    this.endpoint = endpoint;
  }

  public String getAccessKey() {
    return accessKey;
  }

  public void setAccessKey(String accessKey) {
    this.accessKey = accessKey;
  }

  public String getSecretKey() {
    return secretKey;
  }

  public void setSecretKey(String secretKey) {
    this.secretKey = secretKey;
  }

  public String getBucket() {
    return bucket;
  }

  public void setBucket(String bucket) {
    this.bucket = bucket;
  }

  public StateEnum getState() {
    return state;
  }

  public void setState(StateEnum state) {
    this.state = state;
  }
}
